<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>九九乘法表</title>
		<!-- CSS -->
		    <style>
		        /* 对每个单元格进行描述：方框 + 方框线宽度为1px + 方框线为实线 */
		        td {
		            border: 1px solid;
		        }
		    </style>
		
		    <!-- JavaScript -->
		<script>
			/* 创建一个表格，乘法表中的每个元素都站一个单元格 */
			        document.write("<table align='center'>");
			        for (let i = 0; i <= 9; i++) {
			            document.write("<tr>");
			            for (let j = 0; j <= i ; j++) {
			                document.write("<td>");
			                document.write(i + " * " + j + " = " + (i * j) + "&nbsp;&nbsp;&nbsp;");
			                document.write("</td>");
			            }
			            document.write("</tr>");
			        }
			        document.write("</table>");
		</script>
	</head>
	<body>
	</body>
</html>
